﻿using System;

namespace FROG
{
    public class ConnectionEventArgs : EventArgs
    {
        public ConnectionEventArgs(OpenConnection connection)
        {
            _connection = connection;
        }

        private OpenConnection _connection;
        public OpenConnection Connection
        {
            get { return _connection; }
            set { _connection = value; }
        }
    }

    public class WorkSheetEventArgs : EventArgs
    {
        public WorkSheetEventArgs(WorkSheet workSheet)
        {
            _workSheet = workSheet;
        }

        private WorkSheet _workSheet;
        public WorkSheet WorkSheet
        {
            get { return _workSheet; }
            set { _workSheet = value; }
        }
    }

    public delegate void ConnectionOpened(object sender, ConnectionEventArgs e);
    public delegate void ConnectionClosed(object sender, ConnectionEventArgs e);
    public delegate void WorkSheetOpened(object sender, WorkSheetEventArgs e);
    public delegate void WorkSheetClosed(object sender, WorkSheetEventArgs e);
}